package com.wjf.accesscontrol.util

import com.wjf.accesscontrol.entity.IdCardStoreEntity
import com.wjf.accesscontrol.entity.SocialStoreEntity

/**
 * @Description
 * @Author WuJianFeng
 * @Date 2024/1/29 15:18
 *
 */

const val COMMON_FLAG = "common_flag"
const val COMMON_FLAG_MSG = "common_flag_msg"
const val COMMON_FLAG_DATA = "common_flag_data"

const val JUMP_TO = "jump_to"
const val JUMP_TO_MainFragment      = "JUMP_TO_MainFragment"
const val JUMP_TO_IdCardFragment    = "JUMP_TO_IdCardFragment"
const val JUMP_TO_SocialFragment    = "JUMP_TO_SocialFragment"
const val JUMP_TO_LoginFragment     = "JUMP_TO_LoginFragment"
const val JUMP_TO_SettingFragment   = "JUMP_TO_SettingFragment"
const val JUMP_TO_ActivateFragment  = "JUMP_TO_ActivateFragment"


const val READ_ERR_NO_CONNECT = "未建立连接"
const val READ_ERR_CARD_NULL = "无卡"
const val READ_ERR_PSAM_NULL = "无psam卡"

const val CONTROL_IDENTIFY = "access_control"
const val CONTROL_APPID = "AfR5V75SY770"
const val CONTROL_SECRET = "U77dY806"


const val SP_KEY_MACHINE_ID = "machineId"
const val SP_KEY_BASE_URL = "base_url"
const val SP_KEY_MANAGER_URL = "manager_url"

/**
 * 1: 身份证
 * 2：社保卡
 */
const val TYPE_1 = 1
const val TYPE_2 = 2

object Constant{

    //业务地址-通过管理员登录获取
    var baseUrl = "http://10.27.5.8:18888/api-business/"
    //上报地址
    var uploadUrl = "http://10.27.5.9/api-supervise/"
    //管理员登录地址
    var managerUrl = "http://192.168.60.59:18888/api-supervise/"

    var serviceId = ""
    var serviceMethod = ""

    var stationName = ""
    //站点id
    var stationId = ""
    //设备id
    var machineId = ""

    //省号
    var province = ""
    //市号
    var city = ""
    //区号
    var region = ""

    //存储上一次上传到身份证数据
    var idCardStoreEntity = IdCardStoreEntity("",0)

    //存储上一次上传到社保卡数据
    var socialStoreEntity = SocialStoreEntity("",0)
}
